package org.example.service;

import org.example.api.TestService;
import org.example.res.User;
import org.springframework.stereotype.Component;

/**
 * @author liyishan
 * @date 2023/7/21 16:43
 * @apiNote
 */
@Component
public class TestFallbackService implements TestService {
    @Override
    public String demo() {
        return "default";
    }

    @Override
    public String demo1(String name) {
        return "default:"+name;
    }

    @Override
    public User demo2(User name) {
        User user = new User();
        user.setId(1L);
        user.setName("default");
        return user;
    }
}
